package com.zhu.tool_test.callback;

import com.zhu.tool_test.entity.Device;

import java.util.List;
import java.util.Optional;

/**
 * @program: tool_test
 * @description: 分钟数据事件
 * @author: ggBall
 * @create: 2021-03-05 16:34
 **/
public class MinDataEventCallBack extends DataEventCallBack {
    /***
     *
     * @Description: 插入数据
     * @author: ggBall
     * @date 2021/3/5 15:43
     * @return: boolean 插入成功返回false
     * @since 1.0
     */
    @Override
    public Optional<List<Device>> insertData(String json) {
        return Optional.empty();
    }

    /***
     *
     * @Description: 告警操作
     * @author: ggBall
     * @date 2021/3/5 15:52
     *
     * @return: java.util.Optional<java.lang.Object>
     * @since 1.0
     */
    @Override
    public Optional<Object> alarm() {
        return Optional.empty();
    }

    /***
     *
     * @Description: 站点更新操作
     * @author: ggBall
     * @date 2021/3/5 15:54
     *
     * @return: java.lang.Boolean
     * @since 1.0
     */
    @Override
    public Boolean updateSiteState() {
        return null;
    }
}
